import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    name: 'Mes/Cal',
    path: 'mes/cal',
    redirect: 'noRedirect',
    meta: {
      title: $t('mes.cal.title'),
      icon: 'ic:sharp-group',
      noCache: false,
    },
    children: [
      {
        name: 'Team',
        path: 'team',
        component: () => import('#/views/mes/cal/team/index.vue'),
        meta: {
          title: $t('mes.cal.children.Team.title'),
          icon: 'ic:baseline-people-alt',
        },
      },
      {
        name: 'Plan',
        path: 'plan',
        component: () => import('#/views/mes/cal/plan/index.vue'),
        meta: {
          title: $t('mes.cal.children.Plan.title'),
          icon: 'ic:round-dataset',
        },
      },
      {
        name: 'Holiday',
        path: 'holiday',
        component: () => import('#/views/mes/cal/holiday/index.vue'),
        meta: {
          title: $t('mes.cal.children.Holiday.title'),
          icon: 'ic:baseline-date-range',
        },
      },
      {
        name: 'Calendar',
        path: 'calendar',
        component: () => import('#/views/mes/cal/calendar/index.vue'),
        meta: {
          title: $t('mes.cal.children.Calendar.title'),
          icon: 'ic:outline-date-range',
        },
      },
    ],
  },
];

export default routes;
